﻿import QtQuick
import QtQuick.Window
import QtQuick.Controls
import QtQuick.Layouts
ApplicationWindow {
    id:root
    minimumWidth: 1150
    minimumHeight:750
    //无边框窗口 | 任务栏图标
    flags: Qt.FramelessWindowHint | Qt.Window
    visible: true
    title: qsTr("MusicPlayer")

    property int titleBarHeight: 75
    property int titileBarWidth: 950
    property int bottomBarHeight: 90



    //窗口移动与缩放
    FramelessHelper{
        win: root

        heightTopArea: root.titleBarHeight
        heightBottomArea: root.bottomBarHeight

    }



    TitleBar{

        id:titleBar
        z:1
        height: titleBarHeight
        width: titileBarWidth
        win: root


        anchors.top: root.top
        anchors.right: parent.right
        border.color: "red"

    }

    BottomBar{
        width: root.width
        height: bottomBarHeight
        anchors.bottom: parent.bottom
        leftMargin:35
        rightMargin: 30

    }



    Button{
                anchors.centerIn: parent
                width: 50
                height:50
                onHoveredChanged: {
                    console.log("hovered ",hovered)
                }
    }



}


